R<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="5"></td>
    <td width="583" valign="top"><table width="576" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r1_c1.jpg" width="576" height="40" /></td>
      </tr>
    </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/eat/eat_index_r3_c1.jpg">
          	<div id="mapObj" class="view" style="width:544px;height:432px"></div> 
			<SCRIPT LANGUAGE="JavaScript">
			  	//设置地图初始化参数对象
			  	var mapOptions = new MMapOptions();
			  	mapOptions.mapId = "fmptest";
			  	mapOptions.zoomLevel = 10;
			  	//设置中心点为北京
			  	mapOptions.center = new MLatLng("KJONOWKMHLL,MRGYNMLHL");
			  	//创建地图对象
			  	var mapObj = new MMap("mapObj", mapOptions);
			
				var points = new Array(); 
			
				var pointStyle = new MStyle(); 
				pointStyle.lineColor = 0xff0000; 
				pointStyle.lineSize = 3; 
				pointStyle.fillColor = 0xddaabb; 
				pointStyle.fillOpacity = 50; 
				pointStyle.labelColor = 0x00ff00; 
				pointStyle.textContent = '';
			
				//循环此部分即可输出多个点.pointStyle.textContent设置的是每个图片在鼠标移上去后显示的详细信息，可以不管.
				<?php foreach ($allEaterys as $key => $v):?>
				pointStyle.textContent = "<font color='#ff0000'><?php echo $v->getName()?></font><br><?php echo $v->getDes()?>"; 
				points.push(new MPointOverlay(new MLatLng(<?php echo $v->getXy()?>), "<?php echo $v->getName()?>", pointStyle, "200<?php echo $num?>")); 
				<?php endforeach;?>
				
				mapObj.drawPoints(points, true); 
			</script>
          </td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r15_c1.jpg" width="576" height="9" /></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="576" height="40" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r1_c1.jpg">&nbsp;&nbsp;&nbsp;<span class="tit">最新FB活动</span></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r3_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="37%" class="word">主题</td>
              <td width="20%" class="word">景区</td>
              <td width="20%" class="word">店铺</td>
              <td width="23%" class="word">报名 /人数</td>
            </tr> 
             <?php foreach($actions as $i=>$a){ ?>
            <tr>
              <td height="25" class="word"><a href="<?php echo $a['url']; ?>"><?php echo $a['subject']; ?></a></td>
              <td height="25" class="word"><a href="<?php echo $a['url']; ?>"><?php echo $a['c'].'-'.$a['area']; ?></a></td>
              <td height="25" class="word"><a href="<?php echo $a['url']; ?>"><?php echo $a['username'];?></a></td>
              <td height="25"><span class="yh"><?php echo $a['join_num'];?></span><span class="word">/<?php echo $a['interest_num'];?> <a href="<?php echo $a['url']; ?>">我要报名 </a></span></td>
            </tr>
            <?php } ?>
          </table></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r15_c1.jpg" width="576" height="9" /></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="576" height="40" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r1_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="78%">&nbsp;&nbsp;&nbsp;<span class="tit">新发现景点</span></td>
                <td width="22%" class="titsmall"><a href="<?php echo SITE_URL?>sceneSpot/create?sceneid=1">我也有新发现</a></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r3_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
            	<?php
            		$sceneSpot1 = array_slice($sceneSpot,0,4);
            		$sceneSpot2 = array_slice($sceneSpot,4,4);
            		foreach ($sceneSpot1 as $v):
            	?>
              <td align="center">
              	<img src="<?php echo SITE_URL.'uploads/'.$v->getImg()?>" width="125" height="80" class="img" />
              </td>
              	<?php endforeach;?>
            </tr>
            <tr>
            	<?php foreach ($sceneSpot1 as $v):?>
              	<td height="25" align="center" class="word">
              		<a href="/scenespot/intro?id=<?php echo $v->getId();?>"><?php echo $v->getName()?></a>
          		</td>
              	<?php endforeach;?>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php foreach ($sceneSpot2 as $v):?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$v->getImg()?>" width="125" height="80" class="img" />
                </td>
                <?php endforeach;?>
              </tr>
              <tr>
              	<?php foreach ($sceneSpot2 as $v):?>
                <td height="25" align="center" class="word">
                	<a href="/scenespot/intro?id=<?php echo $v->getId();?>"><?php echo $v->getName()?></a>
                </td>
                <?php endforeach;?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r15_c1.jpg" width="576" height="9" /></td>
        </tr>
      </table></td>
    <td width="412" valign="top"><table width="397" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60" background="<?php echo SITE_URL?>img/eat/eat_index_r1_c5.jpg"><img src="<?php echo SITE_URL?>img/eat/eat_index_r1_c3.jpg" width="7" height="33" /></td>
        <td width="300" align="center" background="<?php echo SITE_URL?>img/eat/eat_index_r1_c5.jpg" class="indexdh">
        	<a href="/food/create">发布新美食</a>
        </td>
        <td width="37" align="right" background="<?php echo SITE_URL?>img/eat/eat_index_r1_c5.jpg"><img src="<?php echo SITE_URL?>img/eat/eat_index_r1_c7.jpg" width="5" height="33" /></td>
      </tr>
    </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r3_c3.jpg" width="397" height="8" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r5_c3.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td class="tit" height="30">&nbsp;&nbsp;新发现美食</td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php
              		$foods1 = array_slice($foods,0,3);
              		$foods2 = array_slice($foods,3,3);
              		foreach ($foods1 as $v):
              			$imgArray = explode("|",$v->getImg());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$imgArray['0']?>" width="107" height="72" class="img" />
                </td>
                <?php endforeach;?>
              </tr>
              <tr>
              	<?php foreach ($foods1 as $v):?>
                <td height="25" align="center" class="word">
                	<a href="/food/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <?php endforeach;?>
              </tr>
            </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php
              	foreach ($foods2 as $v):
      				$imgArray = explode("|",$v->getImg());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$imgArray['0']?>" width="107" height="72" class="img" />
                </td>
                <?php endforeach;?>
              </tr>
              <tr>
              	<?php foreach ($foods2 as $v):?>
                <td height="25" align="center" class="word">
                	<a href="/food/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <?php endforeach;?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r7_c3.jpg" width="397" height="6" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r9_c3.jpg" width="399" height="7" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r10_c3.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30">&nbsp;&nbsp;<span class="tit">本日八大名菜</span></td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php
              		$rfoods1 = array_slice($rFoods,0,4);
              		$rfoods2 = array_slice($rFoods,4,4);
              		foreach ($rfoods1 as $v):
              			$foodInfo = FoodPeer::retrieveByPK($v->getObjectId());
              			if($foodInfo):
              			$imgArray = explode("|",$foodInfo->getImg());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$imgArray['0']?>" width="80" height="80" class="img" />
                </td>
                		<?php endif;?>
                	<?php endforeach;?>
              </tr>
              <tr>
              	<?php 
              	foreach ($rfoods1 as $v):
              		$foodInfo = FoodPeer::retrieveByPK($v->getObjectId());
              		if($foodInfo):
              	?>
                <td height="25" align="center" class="yh">
                	<a href="/food/intro?id=<?php echo $foodInfo->getId()?>"><?php echo $foodInfo->getName()?></a>
                </td>
                	<?php endif;?>
                <?php endforeach;?>
              </tr>
            </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
               <?php
              		foreach ($rfoods2 as $v):
              			$foodInfo = FoodPeer::retrieveByPK($v->getObjectId());
              			if($foodInfo):
              			$imgArray = explode("|",$foodInfo->getImg());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$imgArray['0']?>" width="80" height="80" class="img" />
                </td>
                		<?php endif;?>
                	<?php endforeach;?>
              </tr>
              <tr>
                <?php 
              	foreach ($rfoods2 as $v):
              		$foodInfo = FoodPeer::retrieveByPK($v->getObjectId());
              		if($foodInfo):
              	?>
                <td height="25" align="center" class="yh">
                	<a href="/food/intro?id=<?php echo $foodInfo->getId()?>"><?php echo $foodInfo->getName()?></a>
                </td>
                	<?php endif;?>
                <?php endforeach;?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r12_c3.jpg" width="399" height="7" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r3_c3.jpg" width="397" height="8" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r5_c3.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30">&nbsp;&nbsp;<span class="tit">推荐店铺</span></td>
            </tr>
          </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php
              		foreach ($eaterys as $v):
              			$eateryInfo = EateryPeer::retrieveByPK($v->getObjectId());
              			if($eateryInfo):
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL.'uploads/'.$eateryInfo->getImg();?>" width="80" height="80" class="img" />
                </td>
                	<?php endif;?>
                <?php endforeach;?>
              </tr>
              <tr>
              	<?php
              		foreach ($eaterys as $v):
              			$eateryInfo = EateryPeer::retrieveByPK($v->getObjectId());
              			if($eateryInfo):
              	?>
                <td height="25" align="center" class="word">
                	<a href="/eatery/index?id=<?php echo $eateryInfo->getId()?>"><?php echo $eateryInfo->getName();?></a>
                </td>
                	<?php endif;?>
                <?php endforeach;?>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r7_c3.jpg" width="397" height="6" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r3_c3.jpg" width="397" height="8" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r5_c3.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="73%" height="30">&nbsp;&nbsp;<span class="tit">新发现店铺</span></td>
              <td width="27%" class="tit"><a href="/eatery/create" class="titsmall">我也有新发现</a></td>
            </tr>
          </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <?php 
            foreach ($newEaterys as $v): 
            	$sceneInfo = ScenePeer::retrieveByPK($v->getSceneId());
            	if($sceneInfo):
            ?>
              <tr>
                <td width="27%" class="word">
                	<a href="/eatery/index?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <td width="26%" align="center" class="word">
                	<a href="/scene/intro?id=<?php echo $sceneInfo->getId()?>"><?php echo $sceneInfo->getName()?></a>
                </td>
                <td width="47%" align="center" class="word"><?php echo $v->getSpecial()?></td>
              </tr>
              	<?php endif;?>
              <?php endforeach;?>
            </table></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r7_c3.jpg" width="397" height="6" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r3_c3.jpg" width="397" height="8" /></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/eat/eat_index_r5_c3.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="73%" height="30">&nbsp;&nbsp;<span class="tit">老菜新做法</span></td>
                <td width="27%" class="tit"><a href="#"></a></td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <?php 
            foreach ($methods as $v): 
            	$userInfo = getUserById($v->getUserId());
            	$foodInfo = FoodPeer::retrieveByPK($v->getFoodId());
            	if($foodInfo):
            ?>
              <tr>
                <td height="25"><span class="word">唐客</span>
                <span class="yh">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"><?php echo $userInfo['username']?></a>
                </span>
                <span class="word">对</span>
                <span class="yh">
                	<a href="/food/intro?id=<?php echo $foodInfo->getId()?>"><?php echo $foodInfo->getName()?></a>
                </span>
                <span class="word">的新做法</span></td>
                <td class="word"><?php echo $v->getCreatedAt();?></td>
              </tr>
             	<?php endif;?>
             <?php endforeach;?>
            </table></td>
        </tr>
      </table>
      <table width="397" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/eat/eat_index_r7_c3.jpg" width="397" height="6" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
